VSCode tips and settings
Table of Content
VSCode tips and settings#
editor#
XML Region#
<!-- #region -->
...
<!-- #endregion -->
tasks#
Global tasks#
Place task file at ~/.config/Code/User/tasks.json
XML Region#
Wrap selection#
using snippet
use case#
Add mkdocs text highlight on selection
snippet
"mk_text_highlight": {
"prefix": "mk_h",
"body": [
"==${TM_SELECTED_TEXT}=="
],
"description": "highlight text"
}
- Add shortcut
keyboard shortcut
{
"key": "ctrl+h",
"command": "editor.action.insertSnippet",
"when": "editorTextFocus",
"args": {
"name": "mk_text_highlight",
"langId": "markdown"
}
}
Extensions#
ignore recommendation#
Stop VSCode to check and suggest recommendation ext.
"extensions.ignoreRecommendations": true